<?php
/**
 * Created by PhpStorm.
 * User: chenhong
 * Date: 17/2/16
 * Time: 上午9:11
 */
$redis = new Redis;
$redis->connect('127.0.0.1', 9501);
for ($i = 0; $i < 20; $i++) {
    $taskId = $redis->lpush("package", json_encode([
        'target_apk' => 'qyzhangshang(2016.09.12)signed-y0iyy2grba.apk',
        'dir' => 'demo' . $i,
        'channel' => 'demoChannel' . $i,
        'new_apk_name' =>  'demouuuss' . $i . '.apk'
    ]));
//    var_dump($taskId);
}
